.admin-home-v2 {
  min-height: 100vh;
  background: #f5f5f5;
}

.loading-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100vh - 60px);
}

.admin-layout-v2 {
  height: calc(100vh - 60px);
}

.admin-sider {
  background: #fff;
  border-right: 1px solid #e8e8e8;
  overflow-y: auto;
}

.sider-header {
  padding: 16px;
  border-bottom: 1px solid #e8e8e8;
}

.sider-content {
  padding: 16px;
}

.error-banner {
  padding: 12px;
  margin-bottom: 16px;
  background: #fff2f0;
  border: 1px solid #ffccc7;
  border-radius: 4px;
  color: #ff4d4f;
}

.admin-content {
  background: #f5f5f5;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.preview-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px;
  overflow: auto;
}

.preview-container.preview-fullscreen {
  padding: 0;
  overflow: hidden;
}

.preview-container.preview-fullscreen .preview-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px 16px;
  margin-bottom: 0;
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8e8e8;
}

.device-size {
  color: #8c8c8c;
  font-size: 14px;
}

.zoom-controls {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.iframe-wrapper {
  margin: 0 auto;
  overflow: hidden;
  transition: transform 0.3s ease;
  position: relative;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.iframe-wrapper.iframe-fullscreen {
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}

.model-preview-iframe {
  border: none;
  display: block;
  background: white;
}

.safe-area-overlay {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chapter-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chapter-card {
  margin-bottom: 0;
}

.chapter-title-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chapter-order {
  color: #8c8c8c;
  font-size: 16px;
  font-weight: 600;
}

.chapter-title-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 600;
}

.model-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.model-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: grab;
  transition: all 0.2s;
  border: 1px solid transparent;
  user-select: none;
}

.model-item:active {
  cursor: grabbing;
}

.model-item:hover {
  background: #f5f5f5;
}

.model-item.active {
  background: #e6f7ff;
  border-color: #1890ff;
}

.model-item-title {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 500;
}

.model-item-actions {
  opacity: 0;
  transition: opacity 0.2s;
}

.model-item:hover .model-item-actions {
  opacity: 1;
}

.model-item.active .model-item-actions {
  opacity: 1;
}

.empty-models {
  text-align: center;
  color: #999;
  padding: 16px;
  font-size: 12px;
}

.model-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.model-type-card {
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.model-type-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.model-type-icon {
  margin-bottom: 16px;
}

.model-type-card h3 {
  margin: 8px 0;
  font-size: 16px;
  font-weight: 600;
}

.model-type-card p {
  color: #666;
  font-size: 13px;
  margin-bottom: 12px;
  min-height: 40px;
}

.model-type-features {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

